/********************************************************************
	Rhapsody	: 7.5 
	Login		: kbe
	Component	: DefaultComponent 
	Configuration 	: CodeConfig
	Model Element	: LogAcceptor
//!	Generated Date	: Thu, 13, Sep 2012  
	File Path	: DefaultComponent\CodeConfig\LogAcceptor.cpp
*********************************************************************/

//## auto_generated
#include "LogAcceptor.h"
//## auto_generated
#include "Reactor.h"
//## dependency LogEvent
#include "LogEvent.h"
//## package Default

//## class LogAcceptor
LogAcceptor::LogAcceptor(Reactor* reactor, HANDLE h) {
    //#[ operation LogAcceptor(Reactor*,HANDLE)
    itsReactor = reactor;
    itsReactor->registerHandler(*this, ACCEPT_EVENT);
    //#]
}

LogAcceptor::LogAcceptor() {
}

LogAcceptor::~LogAcceptor() {
}

void LogAcceptor::handleEvent(HANDLE h, Event_Type& et) {
    //#[ operation handleEvent(HANDLE,Event_Type)
    if (et == ACCEPT_EVENT)
    {   
    	//SOCK_Stream client_connection;
    	//acceptor_.accept(client_connection); 
    	LogEvent *log = new LogEvent(itsReactor, h);
    }
    //#]
}

/*********************************************************************
	File Path	: DefaultComponent\CodeConfig\LogAcceptor.cpp
*********************************************************************/
